<template>
	<div>
		{{bread}}
	</div>
</template>

<script>
	export default {
		computed: {
			bread() {
				//遍历$route.matched
				let res = "";
				this.$route.matched.forEach((element,index) => {
					res += element.meta;
					if(index < (this.$route.matched.length - 1)) {
						res += ">";
					}
				})
				//将结果返回出去
				return res;
			}
		}
	}
</script>

<style>

</style>